#include "BulletCollision/CollisionShapes/btShapeHull.h"
#ifdef __cplusplus
extern "C" {
#endif
btShapeHull* bullet_NewbtShapeHull(btConvexShape* shape){
	btConvexShape const * c_arg_shape=(btConvexShape const *)(void*)(shape);
	btShapeHull* wrap_out = new btShapeHull(c_arg_shape);
	return wrap_out;
}

bool bullet_btShapeHull_buildHull(btShapeHull* c_this,double margin,int highres){
	btScalar c_arg_margin=margin;
	int c_arg_highres=highres;
	bool c_out = c_this->buildHull(c_arg_margin,c_arg_highres);
	bool wrap_out = (c_out);
	return wrap_out;
}

unsigned int* bullet_btShapeHull_getIndexPointer(btShapeHull* c_this){
	unsigned int const * c_out = c_this->getIndexPointer();
	unsigned int* wrap_out = (unsigned int*)(void*)(c_out);
	return wrap_out;
}

btVector3* bullet_btShapeHull_getVertexPointer(btShapeHull* c_this){
	btVector3 const * c_out = c_this->getVertexPointer();
	btVector3* wrap_out = (btVector3*)(void*)(c_out);
	return wrap_out;
}

int bullet_btShapeHull_numIndices(btShapeHull* c_this){
	int c_out = c_this->numIndices();
	int wrap_out = (c_out);
	return wrap_out;
}

int bullet_btShapeHull_numTriangles(btShapeHull* c_this){
	int c_out = c_this->numTriangles();
	int wrap_out = (c_out);
	return wrap_out;
}

int bullet_btShapeHull_numVertices(btShapeHull* c_this){
	int c_out = c_this->numVertices();
	int wrap_out = (c_out);
	return wrap_out;
}

#ifdef __cplusplus
}
#endif
